package com.spring.entity;

import org.springframework.stereotype.Component;

/**
 * 用来测试@Component 组件扫描作用
 * Created by Administrator on 2016/12/6.
 */
@Component("Car")
public class Car {

    private String name = "奥迪R9";

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
